import request from '@/utils/request'

export function listInfo(query) {
    return request({
        url: '/nursecontent/page',
        method: 'get',
        params: query
    })
}

export function saveOrUpdateInfo(data) {
    return request({
        url: '/nursecontent/saveOrUpdate',
        method: 'post',
        data
    })
}   
export function getById(id) {
    return request({
        url: '/nursecontent/getById/' + id,
        method: 'get',
    })
}
export function getByName(name) {
    return request({
        url: '/nursecontent/getByName/' + name,
        method: 'get',
    })
}
export function removeById(id) {
    return request({
        url: '/nursecontent/' + id,
        method: 'delete'
    })
}